package com.freemyleft.left.left_app.mian.index.my;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;

import com.freemyleft.left.left_app.R;
import com.freemyleft.left.left_app.R2;
import com.freemyleft.left.left_app.mian.index.my.MyRanking.MyRankingDelegate;
import com.freemyleft.left.left_app.mian.index.my.Mystudent.MyStudentDelegate;
import com.freemyleft.left.left_app.mian.index.my.mywallet.MyWalletDelegate;
import com.freemyleft.left.left_app.mian.index.my.base_setting.SettingDelegate;
import com.freemyleft.left.left_app.mian.index.my.accept_setup.AcceptOrderSetupDelegate;
import com.freemyleft.left.left_app.mian.index.my.my_shared.MySharedDelegate;
import com.freemyleft.left.zapp.delegates.Bottom.BottomItemDelegate;

import butterknife.OnClick;

/**
 * 我的主页面
 */
public class MyDelegate extends BottomItemDelegate {

    @OnClick(R2.id.re_user_message)
    void onUserMessage() {
        getParentDelegate().start(new UserMessageDelegate());
    }

    //接单设置
    @OnClick(R2.id.tv_accept_setting)
    void onClickacceptSetting() {
        getParentDelegate().start(new AcceptOrderSetupDelegate());
    }

    //基础设置
    @OnClick(R2.id.tv_base_setting)
    void onClickBaseSetting() {
        getParentDelegate().start(new SettingDelegate());
    }

    //我的排名
    @OnClick(R2.id.my_ranking)
    void onClickMyRanking() {
        getParentDelegate().start(new MyRankingDelegate());
    }

    //我的共享
    @OnClick(R2.id.my_shared)
    void onClickMyShared() {
        getParentDelegate().start(new MySharedDelegate());
    }

    //我的学生
    @OnClick(R2.id.tv_my_student)
    void onClickMyStudent() {
        getParentDelegate().start(new MyStudentDelegate());
    }

    //我的钱包
    @OnClick(R2.id.tv_my_wallet)
    void onClickMyWallet() {
        getParentDelegate().start(new MyWalletDelegate());
    }


    @Override
    public Object setLayout() {
        return R.layout.delegate_my;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, @NonNull View rootView) {

    }
}
